import { http } from '@/utils/http/axios';

/**
 * @description: 获取充电宝列表
 */
export function chargerlist(params) {
    return http.request({
      url: '/device/chargerlist',
      method: 'GET',
      params
    });
}

/**
 * @description: 获取充电端口列表
 */
export function batterylist(params) {
    return http.request({
      url: '/device/batterylist',
      method: 'GET',
      params,
    });
}


//放电
export function openport(params) {
    return http.request({
      url: '/chargingpiles/openport',
      method: 'POST',
      params,
    });
}

export function openAllPort(params) {
    return http.request({
        url: '/chargingpiles/openallport',
        method: 'POST',
        params,
    });
}

export function openResult1(params) {
    return http.request({
        url: '/chargingpiles/openresult',
        method: 'POST',
        params,
    });
}

//关电
export function offport(params){
    return http.request({
        url: '/chargingpiles/offport',
        method: 'POST',
        params,
    });
}

/**
 * 获取门店列表
 */

export function getallStationList(params) {
    return http.request({
        url: '/device/allchargerlist',
        method: 'GET',
        params
    });
}

/**
 * 添加充电宝
 */
export function addCharger(params) {
    return http.request({
        url: '/device/addcharger',
        method: 'POST',
        params
    });
}

/**
 * 修改充电宝
 */
export function editCharger(params) {
    return http.request({
        url: '/device/editcharger',
        method: 'POST',
        params
    });
}

/**
 * 修改充电宝
 */
export function chargerInfo(params) {
    return http.request({
        url: '/device/chargerinfo',
        method: 'GET',
        params
    });
}

export function getDeviceTypeList(params) {
    return http.request({
        url: '/device/devicetypelist',
        method: 'GET',
        params
    });
}

// 获取门店类型
export function getStoreTypeList(params) {
    return http.request({
        url: '/device/storetypelist',
        method: 'GET',
        params
    });
}

//分配充电宝
export function batchCharger(params) {
    return http.request({
        url: '/device/batchcharger',
        method: 'POST',
        params
    });
}

//查询代理商下面的商户
export function bussinessCharger(params) {
    return http.request({
        url: '/device/bussinessall',
        method: 'GET',
        params
    });
}

//查询代理商下面的员工
export function yuangongCharger(params) {
    return http.request({
        url: '/device/yuangongall',
        method: 'GET',
        params
    });
}

//查询代理商下面的门店
export function getStationList1(params) {
    return http.request({
        url: '/device/stationlist1',
        method: 'GET',
        params
    });
}

//充电盒设备类型
export function getgoodsTypeList(params) {
    return http.request({
        url: '/xcx/goodstype',
        method: 'POST',
        params
    });
}


//充电线设备类型
export function getlineTypeList(params) {
    return http.request({
        url: '/device/linetypelist',
        method: 'GET',
        params
    });
}

//已选商品列表信息
export function goodsLists(params) {
    return http.request({
        url: '/xcx/devicegoods',
        method: 'POST',
        params
    });
}

//商品详情
export function goodsinfo(params) {
    return http.request({
        url: '/xcx/goodsdetail1',
        method: 'POST',
        params
    });
}

//商品编辑
export function goodsedit(params) {
    return http.request({
        url: '/xcx/editgoods',
        method: 'POST',
        params
    });
}

//未选商品列表信息
export function getallgoodsList1(params) {
    return http.request({
        url: '/xcx/goodslistselect',
        method: 'POST',
        params
    });
}

// 选中商品
export function selectGoodsinfo(params) {
    return http.request({
        url: '/xcx/goodsselect',
        method: 'POST',
        params
    });
}

// 删除商品
export function delGoodsinfo(params) {
    return http.request({
        url: '/xcx/delgoods',
        method: 'POST',
        params
    });
}

// wifi列表
export function getallwifiList(params) {
    return http.request({
        url: '/xcx/wifilist',
        method: 'POST',
        params
    });
}

// wifi详情
export function wifiInfo(params) {
    return http.request({
        url: '/xcx/wifiinfo',
        method: 'POST',
        params
    });
}

// wifi新增
export function wifiAdd(params) {
    return http.request({
        url: '/xcx/wifiadd',
        method: 'POST',
        params
    });
}

// wifi编辑
export function wifiEdit(params) {
    return http.request({
        url: '/xcx/wifiedit',
        method: 'POST',
        params
    });
}

// wifi删除
export function wifiDel(params) {
    return http.request({
        url: '/xcx/wifidel',
        method: 'POST',
        params
    });
}

// wifi列表 -不分页
export function wifilistnopage(params) {
    return http.request({
        url: '/xcx/wifilistnopage',
        method: 'POST',
        params
    });
}

//充电宝设备类型 -不分页
export function banklistnopage(params) {
    return http.request({
        url: '/device/banktypelist',
        method: 'GET',
        params
    });
}


